/*
  This file is part of 'Trivial chess'.

  'Trivial chess' is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.

  'Trivial chess' is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with 'Trivial chess'.  If not, see <http://www.gnu.org/licenses/>.
*/

/* SVN FILE: $Id$ */
/**
 * @author         $Author$
 * @version        $Rev$
 * @lastrevision   $Date$
 * @filesource     $URL$
 */

#ifndef UNMAKEMOVEINFOABSTRACT_H_
#define UNMAKEMOVEINFOABSTRACT_H_

#include "../MeAbstract.h"

template<template<class,class,class,typename> class UnmakeMoveInfo, class M, class Mv, class CA, typename Int>
class UnmakeMoveInfoAbstract
	: public MeAbstract<UnmakeMoveInfo<M,Mv,CA,Int> > {
public:
	typedef Mv Move;
	typedef typename Mv::Square Square;
	typedef CA CastlingAvailibility;
	typedef M Man;
public:
	Move move() const;
	void setMove(const Move move);
	Man capturedMan() const;
	void setCapturedMan(const Man man);
	CastlingAvailibility castlingAvailability() const;
	void setCastlingAvailability(const CastlingAvailibility ca);
	Square enpassant() const;
	void setEnpassant(const Square square);

	Int halfmoveClock() const;
	void setHalfmoveClock(const Int halfmoveCLock);
};

#endif /* UNMAKEMOVEINFOABSTRACT_H_ */
